package com.bc.mes.common.dto.dv;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * --- 天道酬勤 ---
 *
 * @author zhangpingan
 * @date 2024/7/11
 * @desc
 */
@Setter
@Getter
@ToString
public class DvMachineryTypeParam implements Serializable {

    @ApiModelProperty(value = "设备类型ID")
    private Long machineryTypeId;

    @ApiModelProperty(value = "设备类型编码")
    private String machineryTypeCode;

    @ApiModelProperty(value = "设备类型名称")
    private String machineryTypeName;

    @ApiModelProperty(value = "父类型ID")
    private Long parentTypeId;

    @ApiModelProperty(value = "所有父节点ID")
    private String ancestors;

    @ApiModelProperty(value = "是否启用")
    private String enableFlag;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "预留字段1")
    private String attr1;

    @ApiModelProperty(value = "预留字段2")
    private String attr2;

    @ApiModelProperty(value = "预留字段3")
    private Integer attr3;

    @ApiModelProperty(value = "预留字段4")
    private Integer attr4;

    @ApiModelProperty(value = "创建者")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
